package com.example.himalayaproject.find.anchor.fragment;

import android.app.Application;


import com.example.himalayaproject.find.anchor.interfaceutil.HttpService;
import com.example.himalayaproject.find.monthlyfocus.service.HttpsService;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by 李纪龙 on 2016/12/5.
 */
public class BaseApplication extends Application {
   private HttpsService httpsService;//榜单
    private HttpService httpService;
    @Override
    public void onCreate() {
        super.onCreate();
        httpService =new Retrofit.Builder()
                .baseUrl("http://mobile.ximalaya.com/")
                .addConverterFactory(GsonConverterFactory.create())
                .build()
                .create(HttpService.class);

         //榜单
        httpsService=new Retrofit.Builder()
                .baseUrl("http://mobile.ximalaya.com/")
                .addConverterFactory(GsonConverterFactory.create())
                .build()
                .create(HttpsService.class);
    }

    public HttpsService getHttpsService() {
        return httpsService;
    }

    public HttpService getHttpService() {
        return httpService;
    }
}
